package testy;

public class User {
       
        private int myPin;
        private String myPassword;
        private boolean isAdmin;
       
        public User(int myPin, String myPassword, boolean isAdmin) {
                super();
                this.myPin = myPin;
                this.myPassword = myPassword;
                this.isAdmin = isAdmin;
        }
       
        public String toString() {
                return "Pin: " + myPin;
        }
 
        public boolean isAdmin() {
                        return isAdmin;
                }
 
                public void setAdmin(boolean isAdmin) {
                        this.isAdmin = isAdmin;
                }
 
        public int getMyPin() {
                return myPin;
        }
 
        public void setMyPin(int myPin) {
                this.myPin = myPin;
        }
 
        public String getMyPassword() {
                return myPassword;
        }
 
        public void setMyPassword(String myPassword) {
                this.myPassword = myPassword;
        }
}